package com.springcloudalibaba.service;

import com.springcloud.entities.CommonResult;
import com.springcloud.entities.Payment;
import org.springframework.stereotype.Component;

/**
 * Title: PaymentFallbackService
 * Description: TODO
 *
 * @author gejx
 * @version V1.0
 * @date 2022-01-11
 */
@Component
public class PaymentFallbackService implements PaymentService{
    @Override
    public CommonResult<Payment> paymentSQL(Long id) {
        return new CommonResult<>(444,"服务降级返回",new Payment(id,"error")) ;
    }
}
